package com.shop.cloud.model.request;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" }, ignoreUnknown = true)
public class AddGoodsCategoryRequestData {
	
	@JsonProperty("id")
	@ApiModelProperty(value = "分类id", example = "", required = true)
	private Long id;
	
	@JsonProperty("name")
	@ApiModelProperty(value = "分类名称", example = "", required = true)
	private String name;
	
	@JsonProperty("second")
	@ApiModelProperty(value = "二级分类", example = "", required = true)
	private List<AddGoodsCategoryRequestData> second;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<AddGoodsCategoryRequestData> getSecond() {
		return second;
	}

	public void setSecond(List<AddGoodsCategoryRequestData> second) {
		this.second = second;
	}
	
}
